﻿using System;

namespace DesignPattern.com.state.scene {
    public class SceneState {
//        private string _stateName = "sceneState";

        public string StateName;

        protected SceneController sc;

        public SceneState(SceneController sc){
            this.sc = sc;
        }

        public virtual void stateBegin(){ }
        public virtual void stateUpdate(){ }

        public virtual void stateEnd(){
            Console.WriteLine(StateName+"释放资源");
        }

        public override string ToString(){
            return string.Format("==SceneState.stateName={0}", StateName);
        }
    }
}